<template>
  <div>
    <div>other demo</div>
    <el-button type="primary" class="mt-20" @click="toDetail">
      点击前往详情页
    </el-button>
  </div>
</template>

<script setup name="demo1-2">
const router = useRouter();
function toDetail() {
  router.push({ name: 'demo1-detail' });
}
</script>

<style lang="scss" scoped></style>
